﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace ALS.Poco
{
    /// <summary>
    /// ..\..\..\Bin\
    /// </summary>
    [Table("TcpServer")]
    public class TcpServerPoco
    {
        /// <summary>
        /// 自增主键
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public long TcpServerID { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [Required]
        [StringLength(64)]
        public string Name { get; set; }

        /// <summary>
        /// IP地址
        /// </summary>
        [Required]
        [StringLength(16)]
        public string IPAddress { get; set; }

        /// <summary>
        /// 端口
        /// </summary>
        [Required]
        public int Port { get; set; }
    }
}
